Use _p to fix, once and for all, the debugging printf recently changed.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 31 Oct 2005 15:59:15 +0000 (16:59 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 31 Oct 2005 15:59:15 +0000 (16:59 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
xen/arch/x86/domain.c

index 5d443922abe982f82523d40195946ac9a7e1700c..2161d8a5a00c8b5e3e94866efc1409af524320cd 100644 (file)
@@ -189,22 +189,22 @@ void dump_pageframe_info(struct domain *d)
     {
         list_for_each_entry ( page, &d->page_list, list )
         {
-            printk("Page %p: mfn=%td, caf=%08x, taf=%" PRtype_info "\n",
-                   _p(page_to_phys(page)), page-frame_table, page->count_info,
-                   page->u.inuse.type_info);
+            printk("Page %p: mfn=%p, caf=%08x, taf=%" PRtype_info "\n",
+                   _p(page_to_phys(page)), _p(page - frame_table),
+                   page->count_info, page->u.inuse.type_info);
         }
     }
 
     list_for_each_entry ( page, &d->xenpage_list, list )
     {
-        printk("XenPage %p: mfn=%td, caf=%08x, taf=%" PRtype_info "\n",
-               _p(page_to_phys(page)), page-frame_table, page->count_info,
-               page->u.inuse.type_info);
+        printk("XenPage %p: mfn=%p, caf=%08x, taf=%" PRtype_info "\n",
+               _p(page_to_phys(page)), _p(page - frame_table),
+               page->count_info, page->u.inuse.type_info);
     }
 
     page = virt_to_page(d->shared_info);
-    printk("Shared_info@%p: mfn=%td, caf=%08x, taf=%" PRtype_info "\n",
-           _p(page_to_phys(page)), page-frame_table, page->count_info,
+    printk("Shared_info@%p: mfn=%p, caf=%08x, taf=%" PRtype_info "\n",
+           _p(page_to_phys(page)), _p(page - frame_table), page->count_info,
            page->u.inuse.type_info);
 }